package com.hiwan.wechat.util;

public class WechatRequestUrl {

	public static final String APP_ID = "wx93a696bbe4fafec1";//杭州展鸿科技有限公司 服务号ID
	
	public static final String CORP_ID = "wx6c4f6654f1a4cc9f";//行销易ID
	
	public static final String nonceStr ="jswechat";

	public static final int Timeout = 7200;
	
//	public static final String ContextPath ="http://njqianping.pshiwan.com:18180/imgc";
	
	public static final String ContextPath ="http://imgc.pshiwan.com/imgc";
	
	public static final String ContextPathTest ="http://localhost:8088/imgc";

//	public static final long noticeAppid = 60;
	
	public static String GET_ACCESS_TOKEN="https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=CorpID&corpsecret=SECRET";
	
	public static String JSAPI_TICKET_URL="https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token=ACCESS_TOKEN";
	//公众号链接
	//public static String GET_OPENID="https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
	//公众号链接
	//public static String GET_USERINFO="https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
	
	// 微信静默授权，获取用户userid
	public static String GET_USER_INFO_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE";
	//企业号群发
	public static String SEND_MESSAGE_URL ="https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN"; 
	
	//微信企业号 静默授权接口
	public static String oauth_url ="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+ CORP_ID +"&redirect_uri=REDIRCTURL&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";

	//微信企业号 非静默授权接口
	public static String oauth_url_userInfo ="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+ APP_ID +"&redirect_uri=REDIRCTURL&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
	
	/*public static String CONVERT_TO_OPENID ="https://qyapi.weixin.qq.com/cgi-bin/user/convert_to_openid?access_token=ACCESS_TOKEN";*/ 
	
	public static String GET_USER ="https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&userid=USER_ID"; 
	
	public static String GET_USERINFO="https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
	

	// 微信临时素材下载接口
	public static String TEMP_MEDIA_GET_URL = "https://qyapi.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID";

}
